package com.cyh.pangu.offer.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Builder
@Data
@AllArgsConstructor
public class ListNode {
    public int val;
    public ListNode next;
    public ListNode() {

    }
    public ListNode(int x) {
        val = x;
    }





    public static void main(String[] args) {
        int[] nums = {1, 2, 3, 4};
        ListNode head = ListUtils.buildList(nums);
        ListUtils.printList(head);

    }

}
